package com.woniuxy.carlife.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author fx
 * @ClassName:ServiceGoodParam
 * @Description: 添加商品时用的服务商品参数param类，包括图片文件上传
 * @date 2021/4/8 9:28
 **/
@Data
@ApiModel(value = "添加保养商品的参数类")
public class ServiceGoodParam {

    @NotNull(message="门店id不能为空")
    @ApiModelProperty(value = "门店id")
    private Integer storeId;

    @NotNull(message="商品名字不能为空")
    @ApiModelProperty(value = "商品名字")
    private String serviceGoodName;

    @NotNull(message="商品类别不能为空")
    @ApiModelProperty(value = "商品类别")
    private String serviceGoodCategory;

    @NotNull(message="商品图片不能为空")
    @ApiModelProperty(value = "商品图片,单张")
    private String serviceGoodPic;

    @NotNull(message="商品品牌型号不能为空")
    @ApiModelProperty(value = "商品品牌型号")
    private String serviceGoodBrand;

    @NotNull(message="商品价格不能为空")
    @ApiModelProperty(value = "商品价格")
    private BigDecimal serviceGoodPrice;
}
